import { http, HttpResponse } from '@lingshu/vite-plugin-msw/msw';

const handlers = [
  http.post('/api/lcdp/v1/language/query/header', async () => {
    return HttpResponse.json(
      {
        code: 0,
        message: '',
        data: [
          {
            moduleName: 'Test_Module',
            version: '1.0.4',
            localeId: 'zh-CN',
          },
        ],
      },
    );
  }),
  http.post('/api/lcdp/v1/language/query/batch', () => {
    return HttpResponse.json(
      {
        code: 0,
        message: '',
        data: [
          {
            moduleName: 'Test_Module',
            version: '1.0.4',
            lang: {
              menu: {
                home: '修改后的首页文案4',
              },
            },
          },
        ],
      },
    );
  }),
];

export default handlers;
